package com.zhy.generator.commons.exception;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class ControllerLayerException extends RuntimeException {
    private static final long serialVersionUID = -2113338653426545497L;

    private Integer errorCode;

    private String msg;

    public ControllerLayerException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public ControllerLayerException(String msg, Throwable e) {
        super(msg,e);
        this.msg = msg;
    }

    public ControllerLayerException(Integer errorCode, String msg, Throwable e) {
        super(msg,e);
        this.errorCode = errorCode;
        this.msg = msg;
    }
}
